<?php
	namespace Model;
	use Think\Model;
	class ManagerModel extends Model{
		 function check($name,$pwd){			
			$res=$this->where("name='$name'")->find();
			//dump($res);
			if($res){
				if ($res['password']==$pwd){
					return $res;
				}
			}
			return null;
		}
	}
?>